From: Alessandro Bono Date: Sat, 20 May 2017 15:06:28 +0000 (+0200) Subject: windowManager: Rename variable X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~333 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=70905924772977991448b70e3067132b629f8433;p=gnome-shell.git windowManager: Rename variable Since there is already targetRect that represents where the window is going to move, rename oldRect to sourceRect to represent from where the window is moving. https://bugzilla.gnome.org/show_bug.cgi?id=766685 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 43871fbf3..b9874673c 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -1366,10 +1366,10 @@ const WindowManager = new Lang.Class({ }); let monitor = Main.layoutManager.monitors[actor.meta_window.get_monitor()]; - let oldRect = actor.__fullscreenInfo.oldRect; - if (oldRect) { - actor.translation_x = oldRect.x - monitor.x; - actor.translation_y = oldRect.y - monitor.y; + let sourceRect = actor.__fullscreenInfo.oldRect; + if (sourceRect) { + actor.translation_x = sourceRect.x - monitor.x; + actor.translation_y = sourceRect.y - monitor.y; } else { actor.translation_x = -(targetRect.x - monitor.x); actor.translation_y = -(targetRect.y - monitor.y);